#include "astar/private/map.h"

void XY2Key(int iX, int iY, unsigned long long & key)
{
   key = (iX << 16) + (iY);
}

void Key2XY(unsigned long long key, int & iX, int & iY)
{
   iX = (key & 0x00000000FFFF0000) >> 16;
   iY = key & 0x000000000000FFFF;
}